package com.ltu.enums;

public class MqTopiceDict {					
	public static  String  DelayedPrefix = "$delayed/%s/%s";
	
	
	
	
	
	public enum OrderEnum{ //$delayed/5000/OrderPayListen
		OrderPayListen(0,"支付监听消息","OrderPayListen"),
//		DeviceOnline(2,"","disconnected"), //设备下线
		//+号是通配符：单层通配符只能匹配一个主题层级
		Disconnected(2,"$SYS/brokers/+/clients/+/disconnected","disconnected"), //设备下线
		Connected(2,"$SYS/brokers/+/clients/+/connected","connected"), //设备上线

		;
		private Integer index;
		private String desc;
		private String value;

		OrderEnum(Integer index, String desc, String value) {
			this.index = index;
			this.value = value;
			this.desc  = desc;
		}

		public Integer getIndex() {
			return index;
		}

		public String getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}
}
